@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/goods/goods_edit.js"]}){
<form id="goodsForm" lay-filter="goodsForm" class="layui-form model-form layui-row">
    <input name="id" id="id" type="hidden"/>

    <div class="layui-form-item ">
        <#pic name="商品图片" boxid="editGoodsPicBox"   hiddenInput="headpic"  uploadButton="upPic" />
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label">商品类目<span style="color: red;">*</span></label>
            <div class="layui-input-block">

                <input id="pName" name="pName" placeholder="请选择分类" type="text" class="layui-input" lay-verify="required"  required/>
                <input id="parentId" name="parentId" type="hidden" required >
            </div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label">商品编号<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="goodsNo" name="goodsNo" placeholder="请输入商品编号" type="text" class="layui-input" lay-verify="required" disabled />
            </div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label">商品名<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="name" name="name" placeholder="请输入商品中文名" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label">商品标题<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="title" name="title" placeholder="请输入商品标题" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品标签</label>
            <div class="layui-input-block" id="labelBox">
                <input id="labelId" name="labelId" placeholder="请输入商品标签" type="hidden" class="layui-input"  />
                <input id="labelName" name="labelName" placeholder="请输入商品标签"   type="text" class="layui-input"  />
            </div>
        </div>
        <div class="layui-form-item  ">
            <label class="layui-form-label">商品状态<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input type="radio"  name="status" value="1" title="上架" />
                <input type="radio" name="status" value="0" title="下架"/>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label">价格区间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="priceRange" name="priceRange" placeholder="价格区间" type="text" class="layui-input"  disabled/>
            </div>
        </div>
        <div class="layui-form-item  ">
            <label class="layui-form-label">批次号<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="batchNo" name="batchNo" placeholder="请输入批次号" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否拼单商品<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input type="checkbox" id="productMerge" name="productMerge" lay-filter="productMerge" value="1" lay-skin="switch"  lay-text="是|否"  />
            </div>
        </div>
        <div class="layui-form-item  ">
            <label class="layui-form-label">排序权重<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="weigh" name="weigh" placeholder="请输入排序权重" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">运费<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="shipFee" name="shipFee" placeholder="请输入运费" type="number" class="layui-input" lay-verify="required" required/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">新增时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="createTime" name="createTime" placeholder="请输入新增时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <div class="layui-input-block" style="color: red;">tip :以下三个配置为页面可选显示部分，需提前配置</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">使用说明</label>
            <div class="layui-input-block" >
                <input id="instructionsId" name="instructionsId" placeholder="请选择使用说明" type="hidden" class="layui-input"  />
                <input id="instructionsName" name="instructionsName" placeholder="请选择使用说明" type="text" class="layui-input"  />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品溯源</label>
            <div class="layui-input-block" >
                <input id="traceabilityId" name="traceabilityId" placeholder="商品溯源" type="hidden" class="layui-input"  />
                <input id="traceabilityName" name="traceabilityName" placeholder="商品溯源" type="text" class="layui-input"  />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">关注公众号</label>
            <div class="layui-input-block" >
                <input id="weixinId" name="weixinId"  type="hidden" class="layui-input"  />
                <input id="weixinName" name="weixinName" type="text" class="layui-input"  />
            </div>
        </div>
    </div>
    <div id="description" style="display:none;">
    </div>
    <div class="layui-form-item" style="margin-left: 20px" >
        <blockquote  style="text-align: center">
            商品详情
        </blockquote>
        <div>
            <div id="description_toolbar" class="toolbar">
            </div>
            <div id="description_text" class="text" style="height: 400px;border: 1px solid seagreen">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn  "   id="btnSku"  type="button"  ><i class="layui-icon  layui-icon-edit"></i>配置商品规格</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
        <button class="layui-btn " type="button" ew-event="closeDialog">取消</button>
    </div>
</form>
@}